package com.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Room entity. 
 * @author 0912652
 */

public class Room implements java.io.Serializable {

	// Fields

	private Integer rid;
	private Roomtype roomtype;
	private Integer floor;
	private String desc;
	private Set orderdetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Room() {
	}

	/** minimal constructor */
	public Room(Integer floor) {
		this.floor = floor;
	}

	/** full constructor */
	public Room(Roomtype roomtype, Integer floor, String desc, Set orderdetails) {
		this.roomtype = roomtype;
		this.floor = floor;
		this.desc = desc;
		this.orderdetails = orderdetails;
	}

	// Property accessors

	public Integer getRid() {
		return this.rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	public Roomtype getRoomtype() {
		return this.roomtype;
	}

	public void setRoomtype(Roomtype roomtype) {
		this.roomtype = roomtype;
	}

	public Integer getFloor() {
		return this.floor;
	}

	public void setFloor(Integer floor) {
		this.floor = floor;
	}

	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Set getOrderdetails() {
		return this.orderdetails;
	}

	public void setOrderdetails(Set orderdetails) {
		this.orderdetails = orderdetails;
	}

}